Class NaturalEqualityComparer<T>

A default item equalityComparer calling through to the GetHashCode and Equals methods inherited from System.Object.

Implements

System.Collections.Generic.IEqualityComparer<T>

Bases

object

Property overview

Default

Method overview

Equals(T item1, T item2) ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetHashCode(T item) ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Property details

S NaturalEqualityComparer<T> DefaultAccess: Read-Only

Value:

Method details

F bool Equals(T item1, T item2) Check if two items are equal with respect to this item equalityComparer
Returns:True if equal
Parameters:
item1:first item
item2:second item
F int GetHashCode(T item) Get the hash code with respect to this item equalityComparer
Returns:The hash code
Parameters:
item:The item